package org.example.demo.controller;

import org.example.demo.entity.ApplicationData;
import org.example.demo.entity.VolunteerData;
import org.example.demo.service.ApplicationDataService;
import org.example.demo.service.VolunteerDataService;
import org.example.demo.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
    处理志愿书审核数据
 */
@RestController
@RequestMapping("/VolunteerData")
public class VolunteerDataController {

    @Autowired
    VolunteerDataService volunteerDataService;


    /**
     * 更新志愿书审核数据
     * @param volunteerData
     * @return
     */
    public AjaxResult update(VolunteerData volunteerData) {
        // 更新数据
        volunteerDataService.update(volunteerData);

        return AjaxResult.success();
    }
}
